package com.xiaojie.hystrix.feign;


import com.xiaojie.hystrix.fallback.MyFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wangye
 * @classname MyFegin
 * @date 2021/6/9 13:52
 **/
@FeignClient(
        value = "HYSTRIX-RIBBON-EXAMPLE11",
//        fallback = com.xiaojie.fegin.fallback.MyFeginFallback.class
        fallbackFactory = MyFeignFallbackFactory.class
        , decode404 = true
)
public interface MyFeign {

    @RequestMapping("/server/test")
    String test();

    @RequestMapping("/server/test2")
    String test2();


    @RequestMapping("/server/test3")
    String test3();

    @RequestMapping("/server/test4")
    String test4();

    @RequestMapping("/server/test5")
    String test5();
}
